package kr.hkit.powerjava.chapter06.submit2;

import java.util.Scanner;

public class If_work01 {
	public static void main(String[] args) {
		
		int product;
		
		Scanner input = new Scanner (System.in);
		System.out.print("물건의 개수를 입력하시오: ");
		product = input.nextInt();
		
		if (product>=100)
			System.out.println((int)((product * 100)*0.8) + "원 입니다.");
		else {if (product>=20)
			System.out.println((int)((product * 100)*0.85) + "원 입니다.");
		else {if (product>=10)
			System.out.println((int)((product * 100)*0.9) + "원 입니다.");
		else 
			System.out.println(product * 100 + "원 입니다.");
			}
		}
	}
}
